package view.product;

import javax.swing.BorderFactory;
import javax.swing.GroupLayout;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.LayoutStyle;

public class ProductSubLaptop extends JPanel {
	private static final long serialVersionUID = 1L;
	private JLabel lblProdsublaptopBattery;
	private JLabel lblProdsublaptopCpu;
	private JLabel lblProdsublaptopDrive;
	private JLabel lblProdsublaptopGbhdd;
	private JLabel lblProdsublaptopGbmemory;
	private JLabel lblProdsublaptopGraphic;
	private JLabel lblProdsublaptopHdd;
	private JLabel lblProdsublaptopHrsbattery;
	private JLabel lblProdsublaptopMemory;
	private JLabel lblProdsublaptopScreen;
	private JTextField txtProdsublaptopBattery;
	private JTextField txtProdsublaptopCpu;
	private JTextField txtProdsublaptopDrive;
	private JTextField txtProdsublaptopGraphic;
	private JTextField txtProdsublaptopHdd;
	private JTextField txtProdsublaptopMemory;
	private JTextField txtProdsublaptopScreen;

	public ProductSubLaptop() {
		initComponents();
	}

	public JTextField getTxtProdsublaptopBattery() {
		return txtProdsublaptopBattery;
	}

	public void setTxtProdsublaptopBattery(JTextField txtProdsublaptopBattery) {
		this.txtProdsublaptopBattery = txtProdsublaptopBattery;
	}

	public JTextField getTxtProdsublaptopCpu() {
		return txtProdsublaptopCpu;
	}

	public void setTxtProdsublaptopCpu(JTextField txtProdsublaptopCpu) {
		this.txtProdsublaptopCpu = txtProdsublaptopCpu;
	}

	public JTextField getTxtProdsublaptopDrive() {
		return txtProdsublaptopDrive;
	}

	public void setTxtProdsublaptopDrive(JTextField txtProdsublaptopDrive) {
		this.txtProdsublaptopDrive = txtProdsublaptopDrive;
	}

	public JTextField getTxtProdsublaptopGraphic() {
		return txtProdsublaptopGraphic;
	}

	public void setTxtProdsublaptopGraphic(JTextField txtProdsublaptopGraphic) {
		this.txtProdsublaptopGraphic = txtProdsublaptopGraphic;
	}

	public JTextField getTxtProdsublaptopHdd() {
		return txtProdsublaptopHdd;
	}

	public void setTxtProdsublaptopHdd(JTextField txtProdsublaptopHdd) {
		this.txtProdsublaptopHdd = txtProdsublaptopHdd;
	}

	public JTextField getTxtProdsublaptopMemory() {
		return txtProdsublaptopMemory;
	}

	public void setTxtProdsublaptopMemory(JTextField txtProdsublaptopMemory) {
		this.txtProdsublaptopMemory = txtProdsublaptopMemory;
	}

	public JTextField getTxtProdsublaptopScreen() {
		return txtProdsublaptopScreen;
	}

	public void setTxtProdsublaptopScreen(JTextField txtProdsublaptopScreen) {
		this.txtProdsublaptopScreen = txtProdsublaptopScreen;
	}

	private void initComponents() {

		lblProdsublaptopCpu = new JLabel();
		txtProdsublaptopCpu = new JTextField();
		txtProdsublaptopMemory = new JTextField();
		txtProdsublaptopHdd = new JTextField();
		txtProdsublaptopGraphic = new JTextField();
		txtProdsublaptopScreen = new JTextField();
		txtProdsublaptopBattery = new JTextField();
		lblProdsublaptopMemory = new JLabel();
		lblProdsublaptopHdd = new JLabel();
		lblProdsublaptopGraphic = new JLabel();
		lblProdsublaptopScreen = new JLabel();
		lblProdsublaptopBattery = new JLabel();
		lblProdsublaptopDrive = new JLabel();
		txtProdsublaptopDrive = new JTextField();
		lblProdsublaptopGbmemory = new JLabel();
		lblProdsublaptopGbhdd = new JLabel();
		lblProdsublaptopHrsbattery = new JLabel();

		setBorder(BorderFactory.createTitledBorder("Detail"));

		lblProdsublaptopCpu.setFont(new java.awt.Font("Calibri", 0, 12)); 
		lblProdsublaptopCpu.setText("CPU:");

		txtProdsublaptopMemory
				.addActionListener(new java.awt.event.ActionListener() {
					public void actionPerformed(java.awt.event.ActionEvent evt) {
						txt_prodsublaptop_memoryActionPerformed(evt);
					}
				});

		lblProdsublaptopMemory.setFont(new java.awt.Font("Calibri", 0, 12)); 
		lblProdsublaptopMemory.setText("Memory:");

		lblProdsublaptopHdd.setFont(new java.awt.Font("Calibri", 0, 12)); 
		lblProdsublaptopHdd.setText("HDD:");

		lblProdsublaptopGraphic.setFont(new java.awt.Font("Calibri", 0, 12)); 
		lblProdsublaptopGraphic.setText("Graphic");

		lblProdsublaptopScreen.setFont(new java.awt.Font("Calibri", 0, 12)); 
		lblProdsublaptopScreen.setText("Screen:");

		lblProdsublaptopBattery.setFont(new java.awt.Font("Calibri", 0, 12)); 
		lblProdsublaptopBattery.setText("Battery:");

		lblProdsublaptopDrive.setFont(new java.awt.Font("Calibri", 0, 12)); 
		lblProdsublaptopDrive.setText("Drive:");

		txtProdsublaptopDrive
				.addActionListener(new java.awt.event.ActionListener() {
					public void actionPerformed(java.awt.event.ActionEvent evt) {
						txt_prodsublaptop_driveActionPerformed(evt);
					}
				});

		lblProdsublaptopGbmemory.setFont(new java.awt.Font("Calibri", 0, 12)); 
		lblProdsublaptopGbmemory.setText("GB");

		lblProdsublaptopGbhdd.setFont(new java.awt.Font("Calibri", 0, 12)); 
		lblProdsublaptopGbhdd.setText("GB");

		lblProdsublaptopHrsbattery
				.setFont(new java.awt.Font("Calibri", 0, 12)); 
		lblProdsublaptopHrsbattery.setText("hrs");

		GroupLayout layout = new GroupLayout(this);
		this.setLayout(layout);
		layout.setHorizontalGroup(layout
				.createParallelGroup(GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addGap(38, 38, 38)
								.addGroup(
										layout.createParallelGroup(
												GroupLayout.Alignment.LEADING)
												.addComponent(
														lblProdsublaptopCpu)
												.addComponent(
														lblProdsublaptopMemory)
												.addComponent(
														lblProdsublaptopHdd)
												.addComponent(
														lblProdsublaptopGraphic)
												.addComponent(
														lblProdsublaptopScreen)
												.addComponent(
														lblProdsublaptopBattery)
												.addComponent(
														lblProdsublaptopDrive))
								.addGap(34, 34, 34)
								.addGroup(
										layout.createParallelGroup(
												GroupLayout.Alignment.LEADING,
												false)
												.addComponent(
														txtProdsublaptopCpu)
												.addComponent(
														txtProdsublaptopMemory)
												.addComponent(
														txtProdsublaptopHdd)
												.addComponent(
														txtProdsublaptopGraphic)
												.addComponent(
														txtProdsublaptopScreen)
												.addComponent(
														txtProdsublaptopBattery)
												.addComponent(
														txtProdsublaptopDrive,
														GroupLayout.PREFERRED_SIZE,
														117,
														GroupLayout.PREFERRED_SIZE))
								.addPreferredGap(
										LayoutStyle.ComponentPlacement.UNRELATED)
								.addGroup(
										layout.createParallelGroup(
												GroupLayout.Alignment.LEADING)
												.addComponent(
														lblProdsublaptopGbmemory)
												.addComponent(
														lblProdsublaptopGbhdd)
												.addComponent(
														lblProdsublaptopHrsbattery))
								.addContainerGap(67, Short.MAX_VALUE)));
		layout.setVerticalGroup(layout
				.createParallelGroup(GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addGroup(
										layout.createParallelGroup(
												GroupLayout.Alignment.BASELINE)
												.addComponent(
														lblProdsublaptopCpu)
												.addComponent(
														txtProdsublaptopCpu,
														GroupLayout.PREFERRED_SIZE,
														GroupLayout.DEFAULT_SIZE,
														GroupLayout.PREFERRED_SIZE))
								.addPreferredGap(
										LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												GroupLayout.Alignment.LEADING)
												.addComponent(
														lblProdsublaptopMemory)
												.addGroup(
														GroupLayout.Alignment.TRAILING,
														layout.createParallelGroup(
																GroupLayout.Alignment.BASELINE)
																.addComponent(
																		txtProdsublaptopMemory,
																		GroupLayout.PREFERRED_SIZE,
																		GroupLayout.DEFAULT_SIZE,
																		GroupLayout.PREFERRED_SIZE)
																.addComponent(
																		lblProdsublaptopGbmemory)))
								.addPreferredGap(
										LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												GroupLayout.Alignment.BASELINE)
												.addComponent(
														txtProdsublaptopHdd,
														GroupLayout.PREFERRED_SIZE,
														GroupLayout.DEFAULT_SIZE,
														GroupLayout.PREFERRED_SIZE)
												.addComponent(
														lblProdsublaptopHdd)
												.addComponent(
														lblProdsublaptopGbhdd))
								.addPreferredGap(
										LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												GroupLayout.Alignment.BASELINE)
												.addComponent(
														txtProdsublaptopGraphic,
														GroupLayout.PREFERRED_SIZE,
														GroupLayout.DEFAULT_SIZE,
														GroupLayout.PREFERRED_SIZE)
												.addComponent(
														lblProdsublaptopGraphic))
								.addPreferredGap(
										LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												GroupLayout.Alignment.BASELINE)
												.addComponent(
														txtProdsublaptopScreen,
														GroupLayout.PREFERRED_SIZE,
														GroupLayout.DEFAULT_SIZE,
														GroupLayout.PREFERRED_SIZE)
												.addComponent(
														lblProdsublaptopScreen))
								.addPreferredGap(
										LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												GroupLayout.Alignment.BASELINE)
												.addComponent(
														txtProdsublaptopBattery,
														GroupLayout.PREFERRED_SIZE,
														GroupLayout.DEFAULT_SIZE,
														GroupLayout.PREFERRED_SIZE)
												.addComponent(
														lblProdsublaptopBattery)
												.addComponent(
														lblProdsublaptopHrsbattery))
								.addPreferredGap(
										LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												GroupLayout.Alignment.BASELINE)
												.addComponent(
														txtProdsublaptopDrive,
														GroupLayout.PREFERRED_SIZE,
														GroupLayout.DEFAULT_SIZE,
														GroupLayout.PREFERRED_SIZE)
												.addComponent(
														lblProdsublaptopDrive))));
	}// </editor-fold>//GEN-END:initComponents

	private void txt_prodsublaptop_driveActionPerformed(
			java.awt.event.ActionEvent evt) {// GEN-FIRST:event_txt_prodsublaptop_driveActionPerformed
	}// GEN-LAST:event_txt_prodsublaptop_driveActionPerformed

	private void txt_prodsublaptop_memoryActionPerformed(
			java.awt.event.ActionEvent evt) {// GEN-FIRST:event_txt_prodsublaptop_memoryActionPerformed
	}// GEN-LAST:event_txt_prodsublaptop_memoryActionPerformed

}
